-- GENERATED SPELL FOR [Death's Head Geomancer] --


function spell0_7335(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7335', 3000, 1)
end

function spell1_7335(pUnit, Event) --@Flame Spike,n/a--
pUnit:FullCastSpellOnTarget(6725,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7335', 12000, 1)
end

function spell2_7335(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(11436,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7335', 10000, 1)
end

function Sorts_7335(pUnit, Event)
local choix_sorts_7335 = math.random(0, 2)
if choix_sorts_7335 == 0 then
pUnit:RegisterEvent('spell0_7335', 1, 1)
end
if choix_sorts_7335 == 1 then
pUnit:RegisterEvent('spell1_7335', 1, 1)
end
if choix_sorts_7335 == 2 then
pUnit:RegisterEvent('spell2_7335', 1, 1)
end
end

function mob7335_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7335', math.random(1500, 3000), 1)
end

function mob7335_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7335_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7335_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7335, 1, 'mob7335_Action')
RegisterUnitEvent(7335, 2, 'mob7335_Leave')
RegisterUnitEvent(7335, 3, 'mob7335_Kill')
RegisterUnitEvent(7335, 4, 'mob7335_Die')
